package com.wanmait.schedule.mapper;

import com.wanmait.schedule.entity.Course;
import com.wanmait.schedule.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
public interface PermissionMapper extends BaseMapper<Permission> {
    List<Permission> list();
    //根据Role角色ID查找其对应的权限
    List<Permission> listByRoleId(Integer id);
}
